Add mention of specific tests in guide
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 27 Jul 2015 18:49:50 +0000 (14:49 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Mon, 27 Jul 2015 19:16:39 +0000 (15:16 -0400)
Fixes #1407

src/doc/guide.md

index c3b847193d78572f3df794255a768538de0d3fbd..f98481d30aa54c7c7e814df8bd58e5c00c744207 100644 (file)
@@ -408,6 +408,13 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
 Of course, if your project has tests, you'll see more output, with the
 correct number of tests.
 
+You can also run a specific test by passing a filter:
+
+<pre><code class="language-shell"><span class="gp">$</span> cargo test foo
+</code></pre>
+
+This will run any test with `foo` in its name.
+
 `cargo test` runs additional tests as well. For example, it will compile any
 examples, you’ve included, and will also test the examples in your
 documentation. Please see the [testing guide][testing] in the Rust